import java.util.*;

/**
 * @author LKQ
 * @date 2022/6/10 21:22
 * @description 1到500的随机数，删除其中重复的数字，按从小到大的顺序输出
 */
public class Solution {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        while (sc.hasNext()) {
            Set<Integer> set = new HashSet<>();
            int N = sc.nextInt();
            while (N-- > 0) {
                int n = sc.nextInt();
                set.add(n);
            }
            List<Integer> list = new ArrayList<>(set);
            Collections.sort(list);
            for (Integer a : list) {
                System.out.println(a);
            }
        }
    }
}
